package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface PermissionMapper {

    void load(Permission entity);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    Integer query4Count(QueryObject qo);

    List<Permission> query4List(QueryObject qo);

    List<String> selectAllResource();

    List<Permission> getPermissionsByRoleId(Long roleId);

    List<String> getPermissionByEmployeeId(Long employeeId);
}